import bubbleSortPost from '@/assets/bubbleSort-post.jpg'
import fibonacciPost from '@/assets/fibonacci-post.jpg'
import hnuvmPost from '@/assets/hnuvm-post.jpg'
import vspmPost from '@/assets/vspm-post.jpg'
import dataStructStackPost from '@/assets/data-struct-stack-post.jpg'

export interface IQuestion {
    id: number
    teachCaseId: number
    type: 'singleChoice' | 'multiChoice' | 'shortAnswer'
    trigger: string
    point: string
    content: string
    options: {
        content: string
        id: string
    }
    answer: string
    asked?: boolean
    userAnswer?: string
}

export interface ICaseListItem {
    id?: number
    title: string
    key: string
    poster?: string
    description?: string
    doc?: string
    viewCount?: number
    knowledgeBase?: {
        id: number
        title: string
        collectionName: string
    }
    questions?: IQuestion[]
}

export const caseList: ICaseListItem[] = [
    {
        title: 'hnuvm原型机',
        key: 'hnuvm',
        poster: hnuvmPost,
    },
    {
        title: '斐波拉契数列运行时的栈变化',
        key: 'fibonacci-stack',
        poster: fibonacciPost,
    },
    {
        title: 'vspm原型机',
        key: 'vspm',
        poster: vspmPost,
    },
    {
        title: '冒泡排序',
        key: 'bubble-sort',
        poster: bubbleSortPost,
    },
    {
        title: '插入排序',
        key: 'insert-sort',
        poster: bubbleSortPost,
    },
    {
        title: '数据结构-栈',
        key: 'data-struct-stack',
        poster: dataStructStackPost,
    },
    // NEW_CASE
]
